package lesson.admin;

import lesson.base.BaseServlet;
import lesson.permission.Role;
import lesson.user.User;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

@WebServlet("/admin/*")
public class AdminServlet extends BaseServlet {
    @Role({User.ROLE_ADMIN})
    public void index() throws ServletException, IOException {
        forwardJsp("/pages/admin/index");

    }

}
